package com.content.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.content.mapperExtend.ArticleExtend;
import com.content.mapperExtend.commentExtend;
import com.content.pojo.Article;
import com.content.pojo.Comment;
import com.content.service.ArticleService;
@Service("Article")
@Transactional
public class ArticleServiceImpl implements ArticleService {

	@Resource
	public ArticleExtend aExtend;

	
	@Override
	public List<Article> showArticle() {
		// TODO Auto-generated method stub
		return aExtend.showArticle();
	}
	@Override
	public List<Article> getAllArticle() {
		// TODO Auto-generated method stub
		return aExtend.getAllArticle();
	}
	@Override
	public void createArticle(Article article) {
		// TODO Auto-generated method stub
		aExtend.createArticle(article);
	}
	@Override
	public Article articleDetail(String articleId) {
		// TODO Auto-generated method stub
		return aExtend.articleDetail(articleId);
	}
	@Override
	public List<Article> sortByHot() {
		// TODO Auto-generated method stub
		return aExtend.sortByHot();
	}
	@Override
	public void updateLookNum(Article article) {
		// TODO Auto-generated method stub
		aExtend.updateLookNum(article);
	}
	@Override
	public List<Article> sortByTime() {
		// TODO Auto-generated method stub
		return aExtend.sortByTime();
	}
	
}
